package com.xuecheng.content.model.dto;

import com.xuecheng.base.exception.ValidatedGroups;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * @description 更新课程基本信息请求参数
 * @author 勾新杰
 * @version 1.0
 * @date 2024/12/20 17:14
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "更新课程基本信息请求参数")
public class UpdateCourseBaseDTO extends SaveCourseBaseDTO{

    /**
     * 课程id
     */
    @NotNull(message = "课程id不能为空", groups = {ValidatedGroups.Update.class}) // 指定组
    @ApiModelProperty(value = "课程id", required = true)
    private Long id;

    /**
     * 机构名称
     */
    @ApiModelProperty(value = "机构名称")
    private String companyName;
}
